package com.beiding.config;

import com.beiding.utils.AmqpUtils;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class EmailAmqpConfig {


    //发送发送邮件队列
    public static final String SEND_EMAIL_QUEUE = "send_email_queue";

    /*

        邮件服务只负责发邮件,对于邮件的类型概不负责

     */

    @Bean
    public Queue emailQueue()
    {
        return AmqpUtils.createQueue(SEND_EMAIL_QUEUE);
    }


}
